Skip to content

Don't require allocas for consuming simple enums #138582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

scottmcm
Copy link
Member

@scottmcm scottmcm commented Mar 16, 2025

Well, 4 months later I'm finally back to this.

For example, if you pass an Option<u32> to a function, don't immediately write it to an alloca then read it again.

@rustbot
Copy link
Collaborator

rustbot commented Mar 16, 2025

r? @saethlin

rustbot has assigned @saethlin.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 16, 2025
@scottmcm
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 17, 2025
@bors
Copy link
Collaborator

bors commented Mar 17, 2025

⌛ Trying commit 019c41a with merge a5a9937...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 17, 2025
Don't require `alloca`s for creating or consuming simple enums

This lets, for example, `Option<u32>` stay a `ScalarPair` the whole time, never needing to get written to stack.
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Mar 17, 2025

☀️ Try build successful - checks-actions
Build commit: a5a9937 (a5a99374d77fd499d01fb91c55bcb4ef8dad712a)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (a5a9937): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.4% [0.2%, 1.6%] 187
Regressions ❌
(secondary)
0.6% [0.2%, 6.7%] 129
Improvements ✅
(primary)
-0.5% [-1.0%, -0.3%] 9
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.3% [-1.0%, 1.6%] 196

Max RSS (memory usage)

Results (primary -2.0%, secondary 1.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.9% [1.9%, 1.9%] 1
Improvements ✅
(primary)
-2.0% [-2.0%, -2.0%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.0% [-2.0%, -2.0%] 1

Cycles

Results (primary 1.1%, secondary 2.1%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.1% [0.8%, 1.5%] 11
Regressions ❌
(secondary)
2.5% [1.1%, 3.5%] 10
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.7% [-2.7%, -2.7%] 1
All ❌✅ (primary) 1.1% [0.8%, 1.5%] 11

Binary size

Results (primary -0.2%, secondary -0.0%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 20
Improvements ✅
(primary)
-0.2% [-0.6%, -0.0%] 65
Improvements ✅
(secondary)
-0.1% [-0.3%, -0.0%] 22
All ❌✅ (primary) -0.2% [-0.6%, -0.0%] 65

Bootstrap: 775.741s -> 776.411s (0.09%)
Artifact size: 365.10 MiB -> 364.26 MiB (-0.23%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Mar 17, 2025
@scottmcm
Copy link
Member Author

scottmcm commented Mar 17, 2025

Wow, those numbers are horrible :/

(Well, other than the size improvements)

@scottmcm scottmcm changed the title Don't require allocas for creating or consuming simple enums Don't require allocas for consuming simple enums Mar 17, 2025
@rust-log-analyzer

This comment has been minimized.

@scottmcm
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 17, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 17, 2025
Don't require `alloca`s for consuming simple enums

For example, if you pass an `Option<u32>` to a function, don't immediately write it to an `alloca` then read it again.
@bors
Copy link
Collaborator

bors commented Mar 17, 2025

⌛ Trying commit 3477a13 with merge 132433d...

@bors
Copy link
Collaborator

bors commented Mar 17, 2025

☀️ Try build successful - checks-actions
Build commit: 132433d (132433d7556f612643abac6a48c4b80911f5e9f4)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (132433d): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.2% [0.1%, 0.5%] 9
Regressions ❌
(secondary)
0.5% [0.2%, 1.4%] 45
Improvements ✅
(primary)
-0.4% [-0.8%, -0.2%] 14
Improvements ✅
(secondary)
-0.3% [-0.3%, -0.3%] 3
All ❌✅ (primary) -0.1% [-0.8%, 0.5%] 23

Max RSS (memory usage)

Results (primary -2.9%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-2.9% [-2.9%, -2.9%] 1
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -2.9% [-2.9%, -2.9%] 1

Cycles

Results (secondary 3.5%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.5% [2.4%, 5.4%] 9
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.1%, secondary 0.0%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.0% [0.0%, 0.0%] 4
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 38
Improvements ✅
(primary)
-0.1% [-0.4%, -0.0%] 54
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) -0.1% [-0.4%, 0.0%] 58

Bootstrap: 774.895s -> 775.425s (0.07%)
Artifact size: 365.10 MiB -> 365.16 MiB (0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Mar 17, 2025
@scottmcm
Copy link
Member Author

Wow, that one's almost entirely green in primary and almost entirely red in secondary O_o

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (22dd82f): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @rustbot label: +perf-regression-triaged. If not, please fix the regressions and do another perf run. If its results are neutral or positive, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
0.1% [0.1%, 0.3%] 13
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 6
Improvements ✅
(secondary)
-0.2% [-0.4%, -0.2%] 8
All ❌✅ (primary) -0.0% [-0.3%, 0.3%] 19

Max RSS (memory usage)

Results (primary 1.9%, secondary -2.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
4.9% [4.9%, 4.9%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.0% [-1.0%, -1.0%] 1
Improvements ✅
(secondary)
-2.4% [-2.4%, -2.4%] 1
All ❌✅ (primary) 1.9% [-1.0%, 4.9%] 2

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

Results (primary -0.1%, secondary -0.1%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-0.1% [-0.2%, -0.0%] 49
Improvements ✅
(secondary)
-0.1% [-0.3%, -0.0%] 12
All ❌✅ (primary) -0.1% [-0.2%, -0.0%] 49

Bootstrap: 462.356s -> 464.076s (0.37%)
Artifact size: 374.66 MiB -> 373.88 MiB (-0.21%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 12, 2025
@scottmcm
Copy link
Member Author

Ah, there we go. Hypothesis confirmed: I stopped using this path for anything reading a Scalar::Initialized from a Scalar::Union. Quite a powerful demonstration of the importance of noundef, I guess. Nice to see it still saves some binary size in opt too.

I'll see if I can tweak things a bit more to make it more obviously neutral-or-better, but at least it's already cycle-neutral.

@rust-log-analyzer

This comment has been minimized.

@scottmcm scottmcm force-pushed the option-ssa-2 branch 2 times, most recently from 2edb711 to f5cbd83 Compare July 21, 2025 16:49
@scottmcm
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 21, 2025
bors added a commit that referenced this pull request Jul 21, 2025
Don't require `alloca`s for consuming simple enums

Well, 4 months later I'm finally back to this.

For example, if you pass an `Option<u32>` to a function, don't immediately write it to an `alloca` then read it again.
@bors
Copy link
Collaborator

bors commented Jul 21, 2025

⌛ Trying commit f5cbd83 with merge e0078cb...

@bors
Copy link
Collaborator

bors commented Jul 21, 2025

☀️ Try build successful - checks-actions
Build commit: e0078cb (e0078cbdee3be02e1df5cf04b16783bfa44daec8)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (e0078cb): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

Benchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.3% [0.2%, 0.4%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.2% [-0.2%, -0.2%] 1
All ❌✅ (primary) - - 0

Max RSS (memory usage)

This benchmark run did not return any relevant results for this metric.

Cycles

Results (secondary 3.4%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.4% [3.4%, 3.4%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Binary size

Results (primary -0.1%, secondary -0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 3
Improvements ✅
(primary)
-0.1% [-0.2%, -0.0%] 48
Improvements ✅
(secondary)
-0.1% [-0.3%, -0.0%] 12
All ❌✅ (primary) -0.1% [-0.2%, -0.0%] 48

Bootstrap: 465.766s -> 464.616s (-0.25%)
Artifact size: 374.60 MiB -> 373.82 MiB (-0.21%)

@rustbot rustbot removed S-waiting-on-perf Status: Waiting on a perf run to be completed. perf-regression Performance regression. labels Jul 21, 2025
scottmcm added 3 commits July 21, 2025 23:28
1. Don't downcast both parts of a pair to read just one
2. Avoid the transmute calls if it's not downcasting
@scottmcm
Copy link
Member Author

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 22, 2025
bors added a commit that referenced this pull request Jul 22, 2025
Don't require `alloca`s for consuming simple enums

Well, 4 months later I'm finally back to this.

For example, if you pass an `Option<u32>` to a function, don't immediately write it to an `alloca` then read it again.
@bors
Copy link
Collaborator

bors commented Jul 22, 2025

⌛ Trying commit a04ce83 with merge 7d46308...

@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-19-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
[RUSTC-TIMING] rustc_session test:false 23.943
   Compiling unicode-normalization v0.1.24
[RUSTC-TIMING] unicode_normalization test:false 0.948
   Compiling aho-corasick v1.1.3
error: internal compiler error: /checkout/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21: using operand local (_7 as subtype {closure@compiler/rustc_attr_parsing/src/parser.rs:550:28: 550:31}) as place


thread 'rustc' panicked at /checkout/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21:
Box<dyn Any>
stack backtrace:
---
   9:     0xffcaec854344 - std::panicking::default_hook::{{closure}}::haac60c33ad8953eb
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:300:27
  10:     0xffcaec8541a0 - std::panicking::default_hook::hfbe61bc0eb59097c
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:327:9
  11:     0xffcae8d6a988 - <alloc[cf75e2ab30ac120f]::boxed::Box<rustc_driver_impl[6afef7566091c283]::install_ice_hook::{closure#1}> as core[86de0986de23a55d]::ops::function::Fn<(&dyn for<'a, 'b> core[86de0986de23a55d]::ops::function::Fn<(&'a std[57c45f57ec3c24e5]::panic::PanicHookInfo<'b>,), Output = ()> + core[86de0986de23a55d]::marker::Sync + core[86de0986de23a55d]::marker::Send, &std[57c45f57ec3c24e5]::panic::PanicHookInfo)>>::call
  12:     0xffcaec854db8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1caa90323394741e
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1980:9
  13:     0xffcaec854db8 - std::panicking::rust_panic_with_hook::h448ca412e27acd2b
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:841:13
  14:     0xffcaec49db50 - std[57c45f57ec3c24e5]::panicking::begin_panic::<rustc_errors[7f8ffdac11e87007]::ExplicitBug>::{closure#0}
  15:     0xffcaec49d888 - std[57c45f57ec3c24e5]::sys::backtrace::__rust_end_short_backtrace::<std[57c45f57ec3c24e5]::panicking::begin_panic<rustc_errors[7f8ffdac11e87007]::ExplicitBug>::{closure#0}, !>
  16:     0xffcae8c85578 - std[57c45f57ec3c24e5]::panicking::begin_panic::<rustc_errors[7f8ffdac11e87007]::ExplicitBug>
  17:     0xffcae8c85674 - <rustc_errors[7f8ffdac11e87007]::diagnostic::BugAbort as rustc_errors[7f8ffdac11e87007]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0xffcaec2d4684 - rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt::<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}
  19:     0xffcaec2c9600 - rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_opt::<rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  20:     0xffcaec2c95bc - rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_context_opt::<rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_opt<rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  21:     0xffcae8c7b77c - rustc_middle[f5c8454fb4da4e2]::util::bug::bug_fmt
  22:     0xffcae9145d18 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_place
  23:     0xffcae9147804 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_consume
  24:     0xffcae9147c48 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_operand
  25:     0xffcae91395e8 - rustc_codegen_ssa[67a692bc85a30fcb]::mir::codegen_mir::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  26:     0xffcae918f2c0 - rustc_codegen_ssa[67a692bc85a30fcb]::base::codegen_instance::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  27:     0xffcae9234668 - <rustc_middle[f5c8454fb4da4e2]::mir::mono::MonoItem as rustc_codegen_ssa[67a692bc85a30fcb]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  28:     0xffcae910dd88 - rustc_codegen_llvm[6a163c2912300be4]::base::compile_codegen_unit::module_codegen
  29:     0xffcae910d928 - rustc_codegen_llvm[6a163c2912300be4]::base::compile_codegen_unit
  30:     0xffcae91a648c - <rustc_codegen_llvm[6a163c2912300be4]::LlvmCodegenBackend as rustc_codegen_ssa[67a692bc85a30fcb]::traits::backend::CodegenBackend>::codegen_crate
  31:     0xffcae8fec8ac - <rustc_session[cd1ede632c68cc23]::session::Session>::time::<alloc[cf75e2ab30ac120f]::boxed::Box<dyn core[86de0986de23a55d]::any::Any>, rustc_interface[7e0510a73735faa4]::passes::start_codegen::{closure#0}>
  32:     0xffcae8f9b084 - rustc_interface[7e0510a73735faa4]::passes::start_codegen
  33:     0xffcae900386c - <rustc_interface[7e0510a73735faa4]::queries::Linker>::codegen_and_build_linker
  34:     0xffcae8d4bfd4 - <std[57c45f57ec3c24e5]::thread::local::LocalKey<core[86de0986de23a55d]::cell::Cell<*const ()>>>::with::<rustc_middle[f5c8454fb4da4e2]::ty::context::tls::enter_context<<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>::enter<rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>::{closure#1}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>
  35:     0xffcae8d8845c - <rustc_middle[f5c8454fb4da4e2]::ty::context::TyCtxt>::create_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  36:     0xffcae8d15a00 - <rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  37:     0xffcae8d6a750 - <alloc[cf75e2ab30ac120f]::boxed::Box<dyn for<'a> core[86de0986de23a55d]::ops::function::FnOnce<(&'a rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &'a std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt<'a>>, &'a rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena<'a>>, &'a rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena<'a>>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}), Output = core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>> as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2})>>::call_once
  38:     0xffcae8cfbb88 - rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>
  39:     0xffcae8d6f118 - <scoped_tls[94b819b1bfdf8311]::ScopedKey<rustc_span[be48632450ff045c]::SessionGlobals>>::set::<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
  40:     0xffcae8d3a7e0 - rustc_span[be48632450ff045c]::create_session_globals_then::<(), rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  41:     0xffcae8d80ec4 - std[57c45f57ec3c24e5]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  42:     0xffcae8d78154 - <<std[57c45f57ec3c24e5]::thread::Builder>::spawn_unchecked_<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[86de0986de23a55d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0xffcaec858d38 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4301b1eb7e190497
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
  44:     0xffcaec858d38 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h63c57e2bd87c106a
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
  45:     0xffcaec858d38 - std::sys::pal::unix::thread::Thread::new::thread_start::h029a7b8769f51646
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/pal/unix/thread.rs:97:17
  46:     0xffcae7fc4b30 - <unknown>
  47:     0xffcae802d88c - <unknown>
---
warning: the ICE couldn't be written to `/checkout/rustc-ice-2025-07-22T07_15_12-21098.txt`: Read-only file system (os error 30)

note: rustc 1.90.0-nightly (c3daecc5b 2025-07-22) running on aarch64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debug-assertions=on -C symbol-mangling-version=v0 -Z randomize-layout -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C llvm-args=-import-instr-limit=10 -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z on-broken-pipe=kill -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
[RUSTC-TIMING] rustc_attr_parsing test:false 8.867
error: could not compile `rustc_attr_parsing` (lib)

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_attr_parsing --edition=2024 compiler/rustc_attr_parsing/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debug-assertions=on --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=9341160ed40770b1 -C extra-filename=-f6d6f0e1f456d87b --out-dir /checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps --target aarch64-unknown-linux-gnu -L dependency=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps --extern rustc_abi=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_abi-f418f006f541e934.rmeta --extern rustc_ast=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_ast-a6a6d3d2dd30f0fb.rmeta --extern rustc_ast_pretty=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_ast_pretty-17643485e43d293e.rmeta --extern rustc_attr_data_structures=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_attr_data_structures-bd0cc7a0d5572e88.rmeta --extern rustc_errors=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_errors-94c51c0a6b4aeca8.rmeta --extern rustc_feature=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_feature-da33610682eab09e.rmeta --extern rustc_fluent_macro=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_fluent_macro-23195371a5da8eaa.so --extern rustc_hir=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_hir-36c594b55f97c88c.rmeta --extern rustc_lexer=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_lexer-a00c8fe1305848d9.rmeta --extern rustc_macros=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-f81bd1bcdf2b3fcc.so --extern rustc_session=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_session-01aec03243ede843.rmeta --extern rustc_span=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_span-52ea47141afb12d6.rmeta --extern thin_vec=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libthin_vec-1714023d06128c9e.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zrandomize-layout -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(llvm_enzyme)' -Zmacro-backtrace -Csplit-debuginfo=off -Cllvm-args=-import-instr-limit=10 -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zon-broken-pipe=kill -Z binary-dep-depinfo -L native=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/psm-ddc54c5320dd6019/out -L native=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/blake3-546765be0b4f4689/out` (exit status: 101)
warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] rustc_target test:false 49.197
[RUSTC-TIMING] aho_corasick test:false 5.282
error: internal compiler error: /checkout/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21: using operand local ((_111 as subtype {closure@compiler/rustc_middle/src/mir/pretty.rs:1468:27: 1468:64}).0: &ty::context::TyCtxt<'_>) as place


thread 'rustc' panicked at /checkout/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21:
Box<dyn Any>
stack backtrace:
---
   9:     0xff8be3e74344 - std::panicking::default_hook::{{closure}}::haac60c33ad8953eb
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:300:27
  10:     0xff8be3e741a0 - std::panicking::default_hook::hfbe61bc0eb59097c
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:327:9
  11:     0xff8be038a988 - <alloc[cf75e2ab30ac120f]::boxed::Box<rustc_driver_impl[6afef7566091c283]::install_ice_hook::{closure#1}> as core[86de0986de23a55d]::ops::function::Fn<(&dyn for<'a, 'b> core[86de0986de23a55d]::ops::function::Fn<(&'a std[57c45f57ec3c24e5]::panic::PanicHookInfo<'b>,), Output = ()> + core[86de0986de23a55d]::marker::Sync + core[86de0986de23a55d]::marker::Send, &std[57c45f57ec3c24e5]::panic::PanicHookInfo)>>::call
  12:     0xff8be3e74db8 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h1caa90323394741e
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1980:9
  13:     0xff8be3e74db8 - std::panicking::rust_panic_with_hook::h448ca412e27acd2b
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:841:13
  14:     0xff8be3abdb50 - std[57c45f57ec3c24e5]::panicking::begin_panic::<rustc_errors[7f8ffdac11e87007]::ExplicitBug>::{closure#0}
  15:     0xff8be3abd888 - std[57c45f57ec3c24e5]::sys::backtrace::__rust_end_short_backtrace::<std[57c45f57ec3c24e5]::panicking::begin_panic<rustc_errors[7f8ffdac11e87007]::ExplicitBug>::{closure#0}, !>
  16:     0xff8be02a5578 - std[57c45f57ec3c24e5]::panicking::begin_panic::<rustc_errors[7f8ffdac11e87007]::ExplicitBug>
  17:     0xff8be02a5674 - <rustc_errors[7f8ffdac11e87007]::diagnostic::BugAbort as rustc_errors[7f8ffdac11e87007]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  18:     0xff8be38f4684 - rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt::<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}
  19:     0xff8be38e9600 - rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_opt::<rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  20:     0xff8be38e95bc - rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_context_opt::<rustc_middle[f5c8454fb4da4e2]::ty::context::tls::with_opt<rustc_middle[f5c8454fb4da4e2]::util::bug::opt_span_bug_fmt<rustc_span[be48632450ff045c]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  21:     0xff8be029b77c - rustc_middle[f5c8454fb4da4e2]::util::bug::bug_fmt
  22:     0xff8be0765d18 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_place
  23:     0xff8be0767804 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_consume
  24:     0xff8be0767c48 - <rustc_codegen_ssa[67a692bc85a30fcb]::mir::FunctionCx<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>>::codegen_operand
  25:     0xff8be07595e8 - rustc_codegen_ssa[67a692bc85a30fcb]::mir::codegen_mir::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  26:     0xff8be07af2c0 - rustc_codegen_ssa[67a692bc85a30fcb]::base::codegen_instance::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  27:     0xff8be0854668 - <rustc_middle[f5c8454fb4da4e2]::mir::mono::MonoItem as rustc_codegen_ssa[67a692bc85a30fcb]::mono_item::MonoItemExt>::define::<rustc_codegen_llvm[6a163c2912300be4]::builder::GenericBuilder<rustc_codegen_llvm[6a163c2912300be4]::context::FullCx>>
  28:     0xff8be072dd88 - rustc_codegen_llvm[6a163c2912300be4]::base::compile_codegen_unit::module_codegen
  29:     0xff8be072d928 - rustc_codegen_llvm[6a163c2912300be4]::base::compile_codegen_unit
  30:     0xff8be07c648c - <rustc_codegen_llvm[6a163c2912300be4]::LlvmCodegenBackend as rustc_codegen_ssa[67a692bc85a30fcb]::traits::backend::CodegenBackend>::codegen_crate
  31:     0xff8be060c8ac - <rustc_session[cd1ede632c68cc23]::session::Session>::time::<alloc[cf75e2ab30ac120f]::boxed::Box<dyn core[86de0986de23a55d]::any::Any>, rustc_interface[7e0510a73735faa4]::passes::start_codegen::{closure#0}>
  32:     0xff8be05bb084 - rustc_interface[7e0510a73735faa4]::passes::start_codegen
  33:     0xff8be062386c - <rustc_interface[7e0510a73735faa4]::queries::Linker>::codegen_and_build_linker
  34:     0xff8be036bfd4 - <std[57c45f57ec3c24e5]::thread::local::LocalKey<core[86de0986de23a55d]::cell::Cell<*const ()>>>::with::<rustc_middle[f5c8454fb4da4e2]::ty::context::tls::enter_context<<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>::enter<rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>::{closure#1}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>::{closure#0}, core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>
  35:     0xff8be03a845c - <rustc_middle[f5c8454fb4da4e2]::ty::context::TyCtxt>::create_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2}::{closure#0}>
  36:     0xff8be0335a00 - <rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  37:     0xff8be038a750 - <alloc[cf75e2ab30ac120f]::boxed::Box<dyn for<'a> core[86de0986de23a55d]::ops::function::FnOnce<(&'a rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &'a std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt<'a>>, &'a rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena<'a>>, &'a rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena<'a>>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}), Output = core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>>> as core[86de0986de23a55d]::ops::function::FnOnce<(&rustc_session[cd1ede632c68cc23]::session::Session, rustc_middle[f5c8454fb4da4e2]::ty::context::CurrentGcx, alloc[cf75e2ab30ac120f]::sync::Arc<rustc_data_structures[f778079ad5acf8de]::jobserver::Proxy>, &std[57c45f57ec3c24e5]::sync::once_lock::OnceLock<rustc_middle[f5c8454fb4da4e2]::ty::context::GlobalCtxt>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_middle[f5c8454fb4da4e2]::arena::Arena>, &rustc_data_structures[f778079ad5acf8de]::sync::worker_local::WorkerLocal<rustc_hir[7763ae99a576a1eb]::Arena>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2})>>::call_once
  38:     0xff8be031bb88 - rustc_interface[7e0510a73735faa4]::passes::create_and_enter_global_ctxt::<core[86de0986de23a55d]::option::Option<rustc_interface[7e0510a73735faa4]::queries::Linker>, rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}::{closure#2}>
  39:     0xff8be038f118 - <scoped_tls[94b819b1bfdf8311]::ScopedKey<rustc_span[be48632450ff045c]::SessionGlobals>>::set::<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}, ()>
  40:     0xff8be035a7e0 - rustc_span[be48632450ff045c]::create_session_globals_then::<(), rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}::{closure#0}>
  41:     0xff8be03a0ec4 - std[57c45f57ec3c24e5]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  42:     0xff8be0398154 - <<std[57c45f57ec3c24e5]::thread::Builder>::spawn_unchecked_<rustc_interface[7e0510a73735faa4]::util::run_in_thread_with_globals<rustc_interface[7e0510a73735faa4]::util::run_in_thread_pool_with_globals<rustc_interface[7e0510a73735faa4]::interface::run_compiler<(), rustc_driver_impl[6afef7566091c283]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[86de0986de23a55d]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  43:     0xff8be3e78d38 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h4301b1eb7e190497
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
  44:     0xff8be3e78d38 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h63c57e2bd87c106a
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/alloc/src/boxed.rs:1966:9
  45:     0xff8be3e78d38 - std::sys::pal::unix::thread::Thread::new::thread_start::h029a7b8769f51646
                               at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/pal/unix/thread.rs:97:17
  46:     0xff8bdf5e4b30 - <unknown>
  47:     0xff8bdf64d88c - <unknown>
---
warning: the ICE couldn't be written to `/checkout/rustc-ice-2025-07-22T07_15_06-21072.txt`: Read-only file system (os error 30)

note: rustc 1.90.0-nightly (c3daecc5b 2025-07-22) running on aarch64-unknown-linux-gnu

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C debug-assertions=on -C symbol-mangling-version=v0 -Z randomize-layout -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C llvm-args=-import-instr-limit=10 -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -Z on-broken-pipe=kill -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
[RUSTC-TIMING] rustc_middle test:false 54.411
error: could not compile `rustc_middle` (lib)

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_middle --edition=2024 compiler/rustc_middle/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debug-assertions=on --cfg 'feature="rustc_randomized_layouts"' --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("rustc_randomized_layouts"))' -C metadata=a861d52025a92a65 -C extra-filename=-7d2ad059a1766a51 --out-dir /checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps --target aarch64-unknown-linux-gnu -L dependency=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps --extern bitflags=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libbitflags-aeffcc06727064c0.rmeta --extern either=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libeither-a392195cd3297ad5.rmeta --extern gsgdt=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libgsgdt-5fda66da5820613b.rmeta --extern polonius_engine=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libpolonius_engine-e955c271cb5fa89b.rmeta --extern rustc_abi=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_abi-f418f006f541e934.rmeta --extern rustc_apfloat=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_apfloat-21f8a8fa427382a1.rmeta --extern rustc_arena=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_arena-2eb7bf0dc1c54fce.rmeta --extern rustc_ast=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_ast-a6a6d3d2dd30f0fb.rmeta --extern rustc_ast_ir=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_ast_ir-3b70fdf6a1ab3cd3.rmeta --extern rustc_attr_data_structures=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_attr_data_structures-bd0cc7a0d5572e88.rmeta --extern rustc_data_structures=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_data_structures-84b7b7da922e32f1.rmeta --extern rustc_error_messages=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_error_messages-c13f0d3a02b8fdb7.rmeta --extern rustc_errors=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_errors-94c51c0a6b4aeca8.rmeta --extern rustc_feature=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_feature-da33610682eab09e.rmeta --extern rustc_fluent_macro=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_fluent_macro-23195371a5da8eaa.so --extern rustc_graphviz=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_graphviz-db1241bd9b9368ce.rmeta --extern rustc_hashes=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_hashes-1f7ed0a6ae053594.rmeta --extern rustc_hir=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_hir-36c594b55f97c88c.rmeta --extern rustc_hir_pretty=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_hir_pretty-3e68edb45de81635.rmeta --extern rustc_index=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_index-4f7ec12ec17e7a48.rmeta --extern rustc_lint_defs=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_lint_defs-79d4a115b6639b44.rmeta --extern rustc_macros=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-f81bd1bcdf2b3fcc.so --extern rustc_query_system=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_query_system-1f68f47c0642aa2e.rmeta --extern rustc_serialize=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_serialize-9db4cd3f4bd27811.rmeta --extern rustc_session=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_session-01aec03243ede843.rmeta --extern rustc_span=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_span-52ea47141afb12d6.rmeta --extern rustc_target=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_target-f2f5555edd462648.rmeta --extern rustc_thread_pool=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_thread_pool-7fab1805a486e4d2.rmeta --extern rustc_type_ir=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/librustc_type_ir-80af2071ab0aa608.rmeta --extern smallvec=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libsmallvec-f8caac5924f3b8e8.rmeta --extern thin_vec=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libthin_vec-1714023d06128c9e.rmeta --extern tracing=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/deps/libtracing-aebb00c7c250fef1.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zrandomize-layout -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(llvm_enzyme)' -Zmacro-backtrace -Csplit-debuginfo=off -Cllvm-args=-import-instr-limit=10 -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zon-broken-pipe=kill -Z binary-dep-depinfo -L native=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/psm-ddc54c5320dd6019/out -L native=/checkout/obj/build/aarch64-unknown-linux-gnu/stage1-rustc/aarch64-unknown-linux-gnu/release/build/blake3-546765be0b4f4689/out` (exit status: 101)
Build completed unsuccessfully in 0:12:00
  local time: Tue Jul 22 07:16:01 UTC 2025
  network time: Tue, 22 Jul 2025 07:16:01 GMT
##[error]Process completed with exit code 1.
Post job cleanup.

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.43s
##[endgroup]
[2025-07-22T07:08:47.641Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO)` starts
[2025-07-22T07:08:47.641Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO) > Build PGO instrumented rustc and LLVM` starts
[2025-07-22T07:08:47.641Z INFO  opt_dist::exec] Executing `RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --set rust.llvm-bitcode-linker=false --set build.extended=false --set rust.codegen-backends=['llvm'] --set rust.deny-warnings=false --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj]`
Unknown option: -C
usage: git [--version] [--help] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
---
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
warning: [email protected]: Inherited flag "-fembed-bitcode=all" is not supported by the currently used CC
[RUSTC-TIMING] rustc_llvm test:false 0.118
[RUSTC-TIMING] rustc_query_system test:false 2.501
error: internal compiler error: /rustc-dev/7d4630800843cc0f45243499d12a508ccacef347/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21: using operand local (_6 as subtype {closure@compiler/rustc_attr_parsing/src/parser.rs:550:28: 550:31}) as place


thread 'rustc' panicked at /rustc-dev/7d4630800843cc0f45243499d12a508ccacef347/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21:
Box<dyn Any>
stack backtrace:
---
   4:     0x7f21c4b9022c - std::panicking::default_hook::{{closure}}::h5230ec8d3834b5dc
   5:     0x7f21c4b9002f - std::panicking::default_hook::h82fc2bc32e1ed222
   6:     0x7f21c1d648ce - rustc_driver_impl[7062a6af50971b56]::install_ice_hook::{closure#1}
   7:     0x7f21c4b90d4b - std::panicking::rust_panic_with_hook::h7841a0c9dd31384d
   8:     0x7f21c47f5713 - std[c965b0aa6c3056df]::panicking::begin_panic::<rustc_errors[b939868312515f52]::ExplicitBug>::{closure#0}
   9:     0x7f21c47e0a16 - std[c965b0aa6c3056df]::sys::backtrace::__rust_end_short_backtrace::<std[c965b0aa6c3056df]::panicking::begin_panic<rustc_errors[b939868312515f52]::ExplicitBug>::{closure#0}, !>
  10:     0x7f21c47d8ebf - std[c965b0aa6c3056df]::panicking::begin_panic::<rustc_errors[b939868312515f52]::ExplicitBug>
  11:     0x7f21c48065c1 - <rustc_errors[b939868312515f52]::diagnostic::BugAbort as rustc_errors[b939868312515f52]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7f21c46dae99 - rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt::<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}
  13:     0x7f21c4680aba - rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_opt::<rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7f21c468056b - rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_context_opt::<rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_opt<rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  15:     0x7f21c46dad82 - rustc_middle[b7fc1bb4552352be]::util::bug::bug_fmt
  16:     0x7f21c204fbe1 - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_place
  17:     0x7f21c2055af8 - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_consume
  18:     0x7f21c2055dee - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_operand
  19:     0x7f21c1fe731c - rustc_codegen_ssa[9b918819b57d300a]::mir::codegen_mir::<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>
  20:     0x7f21c20c0c96 - rustc_codegen_llvm[b1c3702f08eae87]::base::compile_codegen_unit::module_codegen
  21:     0x7f21c2112b92 - <rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend as rustc_codegen_ssa[9b918819b57d300a]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  22:     0x7f21c1fee277 - rustc_codegen_ssa[9b918819b57d300a]::base::codegen_crate::<rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend>
  23:     0x7f21c211e588 - <rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend as rustc_codegen_ssa[9b918819b57d300a]::traits::backend::CodegenBackend>::codegen_crate
  24:     0x7f21c1fc3d3d - <rustc_interface[8b1552bf9cb55e54]::queries::Linker>::codegen_and_build_linker
  25:     0x7f21c1d2de82 - <rustc_interface[8b1552bf9cb55e54]::passes::create_and_enter_global_ctxt<core[53647cb28d9a8e2]::option::Option<rustc_interface[8b1552bf9cb55e54]::queries::Linker>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[53647cb28d9a8e2]::ops::function::FnOnce<(&rustc_session[e0061880beaece7]::session::Session, rustc_middle[b7fc1bb4552352be]::ty::context::CurrentGcx, alloc[d932a86623700fa6]::sync::Arc<rustc_data_structures[66e7fd6426273c7b]::jobserver::Proxy>, &std[c965b0aa6c3056df]::sync::once_lock::OnceLock<rustc_middle[b7fc1bb4552352be]::ty::context::GlobalCtxt>, &rustc_data_structures[66e7fd6426273c7b]::sync::worker_local::WorkerLocal<rustc_middle[b7fc1bb4552352be]::arena::Arena>, &rustc_data_structures[66e7fd6426273c7b]::sync::worker_local::WorkerLocal<rustc_hir[1d2befd70cbc6eee]::Arena>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  26:     0x7f21c1ce3695 - rustc_interface[8b1552bf9cb55e54]::passes::create_and_enter_global_ctxt::<core[53647cb28d9a8e2]::option::Option<rustc_interface[8b1552bf9cb55e54]::queries::Linker>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2}>
  27:     0x7f21c1d29fce - rustc_interface[8b1552bf9cb55e54]::interface::run_compiler::<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}
  28:     0x7f21c1d1b8e5 - std[c965b0aa6c3056df]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_with_globals<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_pool_with_globals<rustc_interface[8b1552bf9cb55e54]::interface::run_compiler<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  29:     0x7f21c1d2bd0c - <<std[c965b0aa6c3056df]::thread::Builder>::spawn_unchecked_<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_with_globals<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_pool_with_globals<rustc_interface[8b1552bf9cb55e54]::interface::run_compiler<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[53647cb28d9a8e2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7f21c4b95427 - std::sys::pal::unix::thread::Thread::new::thread_start::h208e5045c7868bf5
  31:     0x7f21c0465ea5 - start_thread
  32:     0x7f21c018eb0d - __clone
  33:                0x0 - <unknown>

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: please attach the file at `/checkout/rustc-ice-2025-07-22T07_19_25-10894.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C linker-features=+lld -Z unstable-options -Z on-broken-pipe=kill -Z default-visibility=protected -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
[RUSTC-TIMING] rustc_attr_parsing test:false 2.884
error: could not compile `rustc_attr_parsing` (lib)

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_attr_parsing --edition=2024 compiler/rustc_attr_parsing/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=e08208320981b28a -C extra-filename=-a835d262cc18e521 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=clang -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps --extern rustc_abi=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_abi-c8c15f9f6f485a42.rmeta --extern rustc_ast=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast-a8dc7f8511f5e4af.rmeta --extern rustc_ast_pretty=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast_pretty-36b4d546850e41d1.rmeta --extern rustc_attr_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_attr_data_structures-6e1028cc490176bf.rmeta --extern rustc_errors=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-7c6e4d5c82567187.rmeta --extern rustc_feature=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_feature-c0d3e31c05642395.rmeta --extern rustc_fluent_macro=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_fluent_macro-634e833f07600783.so --extern rustc_hir=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hir-af3a963672b059fb.rmeta --extern rustc_lexer=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_lexer-04eea97c5a590dd4.rmeta --extern rustc_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-a86a812d3c3f02d4.so --extern rustc_session=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_session-8581c82293bc1359.rmeta --extern rustc_span=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-5c2cb32345440a56.rmeta --extern thin_vec=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libthin_vec-c9ea00b81676dc9a.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(llvm_enzyme)' -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Clinker-features=+lld -Zunstable-options -Alinker-messages -Zon-broken-pipe=kill -Zdefault-visibility=protected -Zdylib-lto -Clto=thin -Cembed-bitcode=yes -Clink-args=-Wl,--icf=all -Cprofile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -Cllvm-args=-vp-counters-per-site=4 -Cllvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/psm-5d22618c94c12587/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-4d33df278d822675/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-4d33df278d822675/out` (exit status: 101)
warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] rustc_errors test:false 14.575
[RUSTC-TIMING] rustc_session test:false 14.141
[RUSTC-TIMING] rustc_target test:false 35.269
error: internal compiler error: /rustc-dev/7d4630800843cc0f45243499d12a508ccacef347/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21: using operand local ((_111 as subtype {closure@compiler/rustc_middle/src/mir/pretty.rs:1468:27: 1468:64}).0: &ty::context::TyCtxt<'_>) as place


thread 'rustc' panicked at /rustc-dev/7d4630800843cc0f45243499d12a508ccacef347/compiler/rustc_codegen_ssa/src/mir/place.rs:329:21:
Box<dyn Any>
stack backtrace:
---
   4:     0x7ffb81e6f22c - std::panicking::default_hook::{{closure}}::h5230ec8d3834b5dc
   5:     0x7ffb81e6f02f - std::panicking::default_hook::h82fc2bc32e1ed222
   6:     0x7ffb7f0438ce - rustc_driver_impl[7062a6af50971b56]::install_ice_hook::{closure#1}
   7:     0x7ffb81e6fd4b - std::panicking::rust_panic_with_hook::h7841a0c9dd31384d
   8:     0x7ffb81ad4713 - std[c965b0aa6c3056df]::panicking::begin_panic::<rustc_errors[b939868312515f52]::ExplicitBug>::{closure#0}
   9:     0x7ffb81abfa16 - std[c965b0aa6c3056df]::sys::backtrace::__rust_end_short_backtrace::<std[c965b0aa6c3056df]::panicking::begin_panic<rustc_errors[b939868312515f52]::ExplicitBug>::{closure#0}, !>
  10:     0x7ffb81ab7ebf - std[c965b0aa6c3056df]::panicking::begin_panic::<rustc_errors[b939868312515f52]::ExplicitBug>
  11:     0x7ffb81ae55c1 - <rustc_errors[b939868312515f52]::diagnostic::BugAbort as rustc_errors[b939868312515f52]::diagnostic::EmissionGuarantee>::emit_producing_guarantee
  12:     0x7ffb819b9e99 - rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt::<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}
  13:     0x7ffb8195faba - rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_opt::<rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}, !>::{closure#0}
  14:     0x7ffb8195f56b - rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_context_opt::<rustc_middle[b7fc1bb4552352be]::ty::context::tls::with_opt<rustc_middle[b7fc1bb4552352be]::util::bug::opt_span_bug_fmt<rustc_span[1c641b26b0b72bd1]::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
  15:     0x7ffb819b9d82 - rustc_middle[b7fc1bb4552352be]::util::bug::bug_fmt
  16:     0x7ffb7f32ebe1 - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_place
  17:     0x7ffb7f334af8 - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_consume
  18:     0x7ffb7f334dee - <rustc_codegen_ssa[9b918819b57d300a]::mir::FunctionCx<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>>::codegen_operand
  19:     0x7ffb7f2c631c - rustc_codegen_ssa[9b918819b57d300a]::mir::codegen_mir::<rustc_codegen_llvm[b1c3702f08eae87]::builder::GenericBuilder<rustc_codegen_llvm[b1c3702f08eae87]::context::FullCx>>
  20:     0x7ffb7f39fc96 - rustc_codegen_llvm[b1c3702f08eae87]::base::compile_codegen_unit::module_codegen
  21:     0x7ffb7f3f1b92 - <rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend as rustc_codegen_ssa[9b918819b57d300a]::traits::backend::ExtraBackendMethods>::compile_codegen_unit
  22:     0x7ffb7f2cd277 - rustc_codegen_ssa[9b918819b57d300a]::base::codegen_crate::<rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend>
  23:     0x7ffb7f3fd588 - <rustc_codegen_llvm[b1c3702f08eae87]::LlvmCodegenBackend as rustc_codegen_ssa[9b918819b57d300a]::traits::backend::CodegenBackend>::codegen_crate
  24:     0x7ffb7f2a2d3d - <rustc_interface[8b1552bf9cb55e54]::queries::Linker>::codegen_and_build_linker
  25:     0x7ffb7f00ce82 - <rustc_interface[8b1552bf9cb55e54]::passes::create_and_enter_global_ctxt<core[53647cb28d9a8e2]::option::Option<rustc_interface[8b1552bf9cb55e54]::queries::Linker>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2}>::{closure#2} as core[53647cb28d9a8e2]::ops::function::FnOnce<(&rustc_session[e0061880beaece7]::session::Session, rustc_middle[b7fc1bb4552352be]::ty::context::CurrentGcx, alloc[d932a86623700fa6]::sync::Arc<rustc_data_structures[66e7fd6426273c7b]::jobserver::Proxy>, &std[c965b0aa6c3056df]::sync::once_lock::OnceLock<rustc_middle[b7fc1bb4552352be]::ty::context::GlobalCtxt>, &rustc_data_structures[66e7fd6426273c7b]::sync::worker_local::WorkerLocal<rustc_middle[b7fc1bb4552352be]::arena::Arena>, &rustc_data_structures[66e7fd6426273c7b]::sync::worker_local::WorkerLocal<rustc_hir[1d2befd70cbc6eee]::Arena>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2})>>::call_once::{shim:vtable#0}
  26:     0x7ffb7efc2695 - rustc_interface[8b1552bf9cb55e54]::passes::create_and_enter_global_ctxt::<core[53647cb28d9a8e2]::option::Option<rustc_interface[8b1552bf9cb55e54]::queries::Linker>, rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}::{closure#2}>
  27:     0x7ffb7f008fce - rustc_interface[8b1552bf9cb55e54]::interface::run_compiler::<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}
  28:     0x7ffb7effa8e5 - std[c965b0aa6c3056df]::sys::backtrace::__rust_begin_short_backtrace::<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_with_globals<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_pool_with_globals<rustc_interface[8b1552bf9cb55e54]::interface::run_compiler<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
  29:     0x7ffb7f00ad0c - <<std[c965b0aa6c3056df]::thread::Builder>::spawn_unchecked_<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_with_globals<rustc_interface[8b1552bf9cb55e54]::util::run_in_thread_pool_with_globals<rustc_interface[8b1552bf9cb55e54]::interface::run_compiler<(), rustc_driver_impl[7062a6af50971b56]::run_compiler::{closure#0}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[53647cb28d9a8e2]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  30:     0x7ffb81e74427 - std::sys::pal::unix::thread::Thread::new::thread_start::h208e5045c7868bf5
  31:     0x7ffb7d744ea5 - start_thread
  32:     0x7ffb7d46db0d - __clone
  33:                0x0 - <unknown>

note: using internal features is not supported and expected to cause internal compiler errors when used incorrectly

note: please attach the file at `/checkout/rustc-ice-2025-07-22T07_19_26-10949.txt` to your bug report

note: compiler flags: --crate-type lib -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 -C linker=clang -C symbol-mangling-version=v0 -Z unstable-options -Z macro-backtrace -C split-debuginfo=off -C link-args=-Wl,-z,origin -C link-args=-Wl,-rpath,$ORIGIN/../lib -C linker-features=+lld -Z unstable-options -Z on-broken-pipe=kill -Z default-visibility=protected -Z dylib-lto -C lto=thin -C embed-bitcode=yes -C link-args=-Wl,--icf=all -C profile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -C llvm-args=-vp-counters-per-site=4 -C llvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -Z tls-model=initial-exec -Z force-unstable-if-unmarked

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
end of query stack
[RUSTC-TIMING] rustc_middle test:false 25.867
error: could not compile `rustc_middle` (lib)

Caused by:
  process didn't exit successfully: `/checkout/obj/build/bootstrap/debug/rustc /checkout/obj/build/bootstrap/debug/rustc --crate-name rustc_middle --edition=2024 compiler/rustc_middle/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=1 --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("rustc_randomized_layouts"))' -C metadata=c0392e1dabb35c70 -C extra-filename=-fe6b5a266049c5c8 --out-dir /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=clang -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps --extern bitflags=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-5ecc7ea9d0c785a4.rmeta --extern either=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libeither-6fff11d4ae43e1ef.rmeta --extern gsgdt=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libgsgdt-49307e98d7d64577.rmeta --extern polonius_engine=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libpolonius_engine-cd7101d3d62ddfd6.rmeta --extern rustc_abi=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_abi-c8c15f9f6f485a42.rmeta --extern rustc_apfloat=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_apfloat-33d8cd01af6790f5.rmeta --extern rustc_arena=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_arena-da3aed9248b9c18d.rmeta --extern rustc_ast=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast-a8dc7f8511f5e4af.rmeta --extern rustc_ast_ir=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_ast_ir-a986d98679e5a008.rmeta --extern rustc_attr_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_attr_data_structures-6e1028cc490176bf.rmeta --extern rustc_data_structures=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-cd0a2720fafe3ae5.rmeta --extern rustc_error_messages=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_error_messages-b40065f9046ee593.rmeta --extern rustc_errors=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-7c6e4d5c82567187.rmeta --extern rustc_feature=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_feature-c0d3e31c05642395.rmeta --extern rustc_fluent_macro=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_fluent_macro-634e833f07600783.so --extern rustc_graphviz=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_graphviz-3f2294035fc486fa.rmeta --extern rustc_hashes=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hashes-62a439a44877b83a.rmeta --extern rustc_hir=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hir-af3a963672b059fb.rmeta --extern rustc_hir_pretty=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_hir_pretty-6ea18beb720d0cfd.rmeta --extern rustc_index=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_index-2afc7d801ba5ea7c.rmeta --extern rustc_lint_defs=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_lint_defs-a95625e8878a5edf.rmeta --extern rustc_macros=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps/librustc_macros-a86a812d3c3f02d4.so --extern rustc_query_system=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_query_system-1fd58480313ea013.rmeta --extern rustc_serialize=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_serialize-773d48f3a2619807.rmeta --extern rustc_session=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_session-8581c82293bc1359.rmeta --extern rustc_span=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_span-5c2cb32345440a56.rmeta --extern rustc_target=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_target-0376a0f1b4c85837.rmeta --extern rustc_thread_pool=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_thread_pool-c7491c4eccae3c9d.rmeta --extern rustc_type_ir=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_type_ir-dc6dad053900fe40.rmeta --extern smallvec=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libsmallvec-4cdbe0894efa0e34.rmeta --extern thin_vec=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libthin_vec-c9ea00b81676dc9a.rmeta --extern tracing=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/deps/libtracing-0a6817e28f0a42c2.rmeta --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options '--check-cfg=cfg(bootstrap)' '--check-cfg=cfg(llvm_enzyme)' -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Clinker-features=+lld -Zunstable-options -Alinker-messages -Zon-broken-pipe=kill -Zdefault-visibility=protected -Zdylib-lto -Clto=thin -Cembed-bitcode=yes -Clink-args=-Wl,--icf=all -Cprofile-generate=/tmp/tmp-multistage/opt-artifacts/rustc-pgo -Cllvm-args=-vp-counters-per-site=4 -Cllvm-args=-static-func-strip-dirname-prefix=2 -Z binary-dep-depinfo -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/psm-5d22618c94c12587/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-4d33df278d822675/out -L native=/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/release/build/blake3-4d33df278d822675/out` (exit status: 101)
[RUSTC-TIMING] rustc_parse test:false 40.899
Build completed unsuccessfully in 0:11:18
[2025-07-22T07:20:06.589Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO) > Build PGO instrumented rustc and LLVM` ended: FAIL (678.95s)`
[2025-07-22T07:20:06.589Z INFO  opt_dist::timer] Section `Stage 1 (Rustc PGO)` ended: FAIL (678.95s)`
[2025-07-22T07:20:06.589Z INFO  opt_dist] Timer results
---
[2025-07-22T07:20:06.589Z INFO  opt_dist::utils] Free disk space: 1.29 TiB out of total 2.16 TiB (40.52% used)
Error: Optimized build pipeline has failed

Caused by:
    Command RUST_BACKTRACE=full python3 /checkout/x.py build --target x86_64-unknown-linux-gnu --host x86_64-unknown-linux-gnu --stage 2 library/std --set rust.llvm-bitcode-linker=false --set build.extended=false --set rust.codegen-backends=['llvm'] --set rust.deny-warnings=false --rust-profile-generate /tmp/tmp-multistage/opt-artifacts/rustc-pgo --set llvm.thin-lto=false --set llvm.link-shared=true [at /checkout/obj] has failed with exit code Some(1)

Stack backtrace:
   0: <anyhow::Error>::msg::<alloc::string::String>
             at /rust/deps/anyhow-1.0.98/src/backtrace.rs:27:14
   1: <opt_dist::exec::CmdBuilder>::run
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/exec.rs:80:17
   2: <opt_dist::exec::Bootstrap>::run
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/exec.rs:193:18
   3: opt_dist::execute_pipeline::{closure#1}::{closure#0}
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/main.rs:250:21
   4: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}::{closure#0}, ()>
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/timer.rs:111:22
   5: opt_dist::execute_pipeline::{closure#1}
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/main.rs:239:15
   6: <opt_dist::timer::TimerSection>::section::<opt_dist::execute_pipeline::{closure#1}, opt_dist::training::RustcPGOProfile>
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/timer.rs:111:22
   7: opt_dist::execute_pipeline
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/main.rs:236:35
   8: opt_dist::main
             at /rustc/7d4630800843cc0f45243499d12a508ccacef347/src/tools/opt-dist/src/main.rs:455:18
   9: <fn() -> core::result::Result<(), anyhow::Error> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/ops/function.rs:250:5
  10: std::sys::backtrace::__rust_begin_short_backtrace::<fn() -> core::result::Result<(), anyhow::Error>, core::result::Result<(), anyhow::Error>>
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/sys/backtrace.rs:152:18
  11: std::rt::lang_start::<core::result::Result<(), anyhow::Error>>::{closure#0}
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/rt.rs:206:18
  12: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/core/src/ops/function.rs:284:21
  13: std::panicking::catch_unwind::do_call
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:589:40
  14: std::panicking::catch_unwind
             at /rustc/390a0ab5dc4a895235a551e502c3893c3337731d/library/std/src/panicking.rs:552:19

@bors
Copy link
Collaborator

bors commented Jul 22, 2025

💔 Test failed - checks-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-perf Status: Waiting on a perf run to be completed. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants